package com.lh.java.basic.threadlocal;

public class ThreadTest {

	public static void main(String[] args) {
//		Runnable runnable = new Runnable() {
//			private Count count = new Count();
//			public void run() {
//				count.count();
//			}
//		};
//		for (int i = 0; i < 10; i++) {
//			new Thread(runnable).start();
//		}
		testThread();
	}

	public static void testThread() {
		for (int i = 0; i < 1000; i++) {
			new CountThread().run();
		}
	}

}

class CountThread extends Thread {
	Count count = new Count();

	@Override
	public void run() {
		count.count();
	}

}
